package com.cgwx.tcservice.config;

import com.cgwx.tcservice.interceptor.FeignBasicAuthRequestInterceptor;
import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author GaoWei
 * @Date 2023/10/30 - 15:36
 */

@Configuration
public class FeignConfig{
    @Bean
    public RequestInterceptor requestInterceptor(){
        return new FeignBasicAuthRequestInterceptor();
    }
}
